package cn.qzuie.smart.module.dorm.controller.admin.energyusage.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.qzuie.smart.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.qzuie.smart.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 能源使用分页 Request VO")
@Data
public class EnergyUsagePageReqVO extends PageParam {

    @Schema(description = "宿舍ID", example = "7928")
    private Long dormitoryId;

    @Schema(description = "能源编号", example = "8326")
    private Long energyId;

    @Schema(description = "上次抄表日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] preReadingDate;

    @Schema(description = "当前读数")
    private Double currentReading;

    @Schema(description = "上次读数")
    private BigDecimal previousReading;

    @Schema(description = "抄表人", example = "19279")
    private Long userId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "用量")
    private String usage;

}